def gen():
    i = 0
    while i < 5:
        temp = yield i
        print('temp:', temp)
        i += 1

    return '没有值了'


g = gen()
print(g.send(None))
print(g.send('呵呵'))
print(g.send('hello'))
